﻿#include "CmdSetHeatMapCurveNameCheckStateChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapCurveNameCheckStateChanged::CmdSetHeatMapCurveNameCheckStateChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapCurveNameCheckStateChanged::~CmdSetHeatMapCurveNameCheckStateChanged()
    {
    }

    bool CmdSetHeatMapCurveNameCheckStateChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapCurveNameCheckStateChanged(m_windowId, m_curveNameIndex, m_checkState);
        return true;
    }

    void CmdSetHeatMapCurveNameCheckStateChanged::undo()
    {
    }

    void CmdSetHeatMapCurveNameCheckStateChanged::redo()
    {
        // execute();
    }

    void CmdSetHeatMapCurveNameCheckStateChanged::setCurveNameCheckStateChanged(int windowId, int curveNameIndex, bool checkState)
    {
        m_windowId = windowId;
        m_curveNameIndex = curveNameIndex;
        m_checkState = checkState;
    }

} // namespace PostCommand
